package
{
	import ch.feinheit.feinslide.guiElements.SlideShowGUI;
	import flash.display.Sprite;
	
	// Configuration for the Stage of the SWF which will be exported from Flash.
	[SWF(width='717', height='478', backgroundColor='#ffffff', frameRate='33')]
	
	/**
	 * The class is linked with the Main.fla file, which contains all the MovieClips and Assets.
	 *
	 * @author		Armin Brunner 
	 */
	public class Main extends Sprite
	{
		private var fullname:String;
		private var xmlPath:String;
		private var gui:SlideShowGUI;
		
		/** 
		 * Constructor
		 * handling the FlashVars and SlideShowGUI.
		 * 
		 */
		public function Main():void
		{			
			// Getting FlashVars
			root.loaderInfo.parameters.xmlPath ? xmlPath = root.loaderInfo.parameters.xmlPath : xmlPath = '../media/xml/board.xml';
			
			// Creates the main SlideShowGUI and puts it to the stage.
			gui = new SlideShowGUI(xmlPath);
			this.addChild(gui);			
		}
	}
}